﻿using System;
using System.Windows.Forms;

namespace TextEditor
{
    

    public class 等等 : A_Action
    {
        public override string ActionName()
        {
            return "removeblankkeyfield";
        }

        public override bool Execute()
        {
            base.myOwnerDocument.RemoveBlankKeyField(true);
            return true;
        }

        public override bool isEnable()
        {
            return base.myOwnerDocument.CanModify();
        }

        public override bool UIExecute()
        {
            if (MessageBox.Show(null, "是否真的删除空白的数据域及其周围的字符?", "系统提问", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                base.myOwnerDocument.RemoveBlankKeyField(true);
                return true;
            }
            return false;
        }
    }
}

